package com.bee.portal.service.sm.impl;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

import com.bee.base.entity.Page;
import com.bee.portal.dao.sm.DictionaryItemDao;
import com.bee.portal.domain.sm.DictionaryItem;
import com.bee.portal.service.sm.DictionaryItemService;

public class DictionaryItemServiceImpl implements DictionaryItemService {

	private DictionaryItemDao dictionaryItemDao;

	public void setDictionaryItemDao(DictionaryItemDao dictionaryItemDao) {
		this.dictionaryItemDao = dictionaryItemDao;
	}

	@Override
	public Serializable save(DictionaryItem entity) {
		return dictionaryItemDao.save(entity);
	}

	@Override
	public void saveAll(Collection<DictionaryItem> entities) {
		dictionaryItemDao.saveAll(entities);
	}

	@Override
	public DictionaryItem get(Long sid) {
		return dictionaryItemDao.get(sid);
	}

	@Override
	public List<DictionaryItem> find(String queryString, Object... values) {
		return dictionaryItemDao.find(queryString, values);
	}

	@Override
	public List<DictionaryItem> find(DictionaryItem entity) {
		return dictionaryItemDao.find(entity);
	}

	@Override
	public List<DictionaryItem> find(Map<String, String> params) {
		return dictionaryItemDao.find(params);
	}

	@Override
	public List<DictionaryItem> findAll() {
		return dictionaryItemDao.findAll();
	}

	@Override
	public void update(DictionaryItem entity) {
		dictionaryItemDao.update(entity);
	}

	@Override
	public void updateAll(Collection<DictionaryItem> entities) {
		dictionaryItemDao.updateAll(entities);
	}

	@Override
	public void delete(DictionaryItem entity) {
		dictionaryItemDao.delete(entity);
	}

	@Override
	public void delete(Long sid) {
		dictionaryItemDao.delete(sid);
	}

	@Override
	public void deleteAll(Collection<DictionaryItem> entities) {
		dictionaryItemDao.deleteAll(entities);
	}

	@Override
	public Page page(String queryString, int pageNo, int pageSize) {
		return dictionaryItemDao.page(queryString, pageNo, pageSize);
	}

	@Override
	public Page page(Map<String, String> params, int pageNo, int pageSize) {
		return dictionaryItemDao.page(params, pageNo, pageSize);
	}
}
